package com.hyt.it.ogt.pj.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyt.it.ogt.pj.model.entity.Subject;

/**
 * <p>
 * 评卷科目表 Mapper 接口
 * </p>
 *
 * @author qiaozj
 * @since 2020-07-09
 */
public interface SubjectMapper extends BaseMapper<Subject> {

    List<Subject> selectByProjectId(@Param("projectId") String projectId);
    
    Subject selectByProjectIdAndSubjectId(@Param("projectId") String projectId,  @Param("subjectId")String subjectId);

    Subject getMarkSubject(@Param("projectId") String projectId);

    void updateSubjectMarkStatus(@Param("projectId")String projectId, @Param("subjectId")String subjectId, @Param("isFinish")Boolean isFinish);

    int updateExamNum(@Param("projectId")String projectId, @Param("subjectId")String subjectId, @Param("examNum")Integer examNum);

}
